package demo7;

import demo1.Person;

public class Animal {
    public String name;
    public int age;

    public Animal(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public void eat(){
        System.out.println(this.name+" 在吃东西");
    }

    public static void run(){
        Animal animal = new Animal("小红",2);
        animal.eat();
        System.out.println("正在跑");
    }
}
